import Vue from 'vue'
import Router from 'vue-router'
// import routes
import infoRoutes from './info/routes'
import mainRoutes from './main/routes'
import memberRoutes from './member/routes'
import projectRoutes from './project/routes'
import stateRoutes from './state/routes'
import butlerRoutes from './butler/routes'
import loginRoutes from './other/login.js'
import jifenRoutes from './jifen/routes'

Vue.use(Router)
//main文件夹里。有重定向
export default new Router({
    mode: 'history',
    base: process.env.BASE_URL,
    routes: [
        {...infoRoutes },
        {...mainRoutes },
        {...memberRoutes },
        {...projectRoutes },
        {...stateRoutes },
        {...butlerRoutes },
        {...loginRoutes },
        {...jifenRoutes },
    ]
})